load('../src/ph/ph.js');

ph.bootstrap('settings.js');
ph.keepRunning();

dojo.require('ph.osc.Receiver');

receiver = new ph.osc.Receiver(7007);
receiver.subscribe('/tag/enter', function(evt) {
  print(evt.type, evt.args[0]);
});
receiver.subscribe('/tag/exit', function(evt) {
  print(evt.type, evt.args[0]);
});

receiver.start();

print('Running');